function formatTable( hObject, initialData)
%Formats table to suit certain matrix
dim = size(initialData, 2);
set(hObject, 'Data', initialData);
set(hObject, 'ColumnEditable', true);
set(hObject, 'Units', 'pixels');
set(hObject, 'RowName', []);
set(hObject, 'ColumnName', []);
cell_width = get(hObject(1), 'Position');
cell_width = floor((cell_width(3) - 2) / dim);
set(hObject, 'ColumnWidth', num2cell(ones(1, dim) * cell_width));
end

